package com.we823.project.model.repo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.we823.project.model.BaseModelWithDate;

@Entity
@Table(name="repo_material_stock_in")
@NamedQuery(name="MaterialStockInModel.findAll", query="SELECT m FROM MaterialStockInModel m")
public class MaterialStockInModel extends BaseModelWithDate {
	private static final long serialVersionUID = 1L;

	private String checker;

	private String code;

	private String inputer;

	@Column(name="material_code")
	private String materialCode;

	private String memo;

	@Column(name="repo_id")
	private int repoId;

	@Column(name="total_num")
	private float totalNum=0;

	private String unit;
	
	private String checkstatus="未确认";
	
	@Transient
	private String materialName;

	public MaterialStockInModel() {
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getInputer() {
		return this.inputer;
	}

	public void setInputer(String inputer) {
		this.inputer = inputer;
	}

	public String getMaterialCode() {
		return this.materialCode;
	}

	public void setMaterialCode(String materialCode) {
		this.materialCode = materialCode;
	}

	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public int getRepoId() {
		return this.repoId;
	}

	public void setRepoId(int repoId) {
		this.repoId = repoId;
	}

	public String getUnit() {
		return this.unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public String getChecker() {
		return checker;
	}

	public void setChecker(String checker) {
		this.checker = checker;
	}

	public float getTotalNum() {
		return totalNum;
	}

	public void setTotalNum(float totalNum) {
		this.totalNum = totalNum;
	}

	public String getCheckstatus() {
		return checkstatus;
	}

	public void setCheckstatus(String checkstatus) {
		this.checkstatus = checkstatus;
	}

	public String getMaterialName() {
		return materialName;
	}

	public void setMaterialName(String materialName) {
		this.materialName = materialName;
	}

	
	
}